package com.example.ship.entity;

import lombok.Data;

import java.util.List;

/**
 * 行星
 */
@Data
public class Planet {

    private final Point max;       // 确保前进时根据 max（坐标）确定当前位置
    private List<Point> obstacles; // 障碍物

    public Planet(Point max) {
        this.max = max;
    }
    public Planet(Point max, List<Point> obstacles) {
        this.max = max;
        this.obstacles = obstacles;
    }

}
